home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE01 / TIPTRIX / DLLOBJ / TESTOBJ.PAS < prev   
Encoding:
Pascal/Delphi Source File  |  1995-06-01  |  439 b   |  23 lines

  1. program TestObj;
  2.  
  3. uses
  4.   MyObj, WinCrt;  { OBS! WinCrt _must_ be last in the uses statement-
  5.                          this is due to a "feature" in the compiler... }
  6. var
  7.   T : TMyObject;
  8.   P : integer;
  9. begin
  10.   T := _TMyObject.Create;
  11.   try
  12.     repeat
  13.       writeln('Enter a value for property: ');
  14.       readln(P);
  15.       T.Prop := P;
  16.       T.TestIt;
  17.     until P = 0;
  18.   finally
  19.     T.Free;
  20.     DoneWinCrt;
  21.   end;
  22. end.
  23.